home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / crayola / common / crayola.h < prev    next >
C/C++ Source or Header  |  1992-12-30  |  1KB  |  51 lines

  1. #ifndef CRAYOLA_H
  2. #define CRAYOLA_H
  3.  
  4. #include "color.h"
  5.  
  6. /* 
  7.  * Default color 
  8.  */
  9. #define CRAY_DEFR 1.0
  10. #define CRAY_DEFG 1.0
  11. #define CRAY_DEFB 1.0
  12. #define CRAY_DEFA 1.00
  13.  
  14. extern ColorA crayDefColor;
  15.  
  16. /* 
  17.  * Initialize the extended routines
  18.  */
  19. void crayolaInit();
  20.  
  21. int crayHasColor(Geom *geom, int *gpath);
  22. int crayHasVColor(Geom *geom, int *gpath);
  23. int crayHasFColor(Geom *geom, int *gpath);
  24.  
  25. int crayCanUseVColor(Geom *geom, int *gpath);
  26. int crayCanUseFColor(Geom *geom, int *gpath);
  27.  
  28. int crayUseVColor(Geom *geom, ColorA *def, int *gpath);
  29. int crayUseFColor(Geom *geom, ColorA *def, int *gpath);
  30.  
  31. int crayEliminateColor(Geom *geom, int *gpath);
  32.  
  33. /* 
  34.  * The point itself is last because no one except beziers really cares
  35.  * about it so we won't force them to read past it in the arguement list.
  36.  */
  37. int craySetColorAll(Geom *geom, ColorA *color, int *gpath);
  38. int craySetColorAt(Geom *geom, ColorA *color, int vindex, int findex,
  39.            int *edge, int *gpath, HPoint3 *pt);
  40. int craySetColorAtV(Geom *geom, ColorA *color, int index, int *gpath,
  41.             HPoint3 *pt);
  42. int craySetColorAtF(Geom *geom, ColorA *color, int index, int *gpath);
  43.  
  44. int crayGetColorAt(Geom *geom, ColorA *color, int vindex, int findex,
  45.            int *edge, int *gpath, HPoint3 *pt);
  46. int crayGetColorAtV(Geom *geom, ColorA *color, int index, int *gpath,
  47.             HPoint3 *pt);
  48. int crayGetColorAtF(Geom *geom, ColorA *color, int index, int *gpath);
  49.  
  50. #endif
  51.